package priv.yiyuan.example.design.visitor;

/**
 * api同步访问者
 *
 * @author YiYuan
 * @data 2025/7/30
 * @apoNote
 */
public class ApiSyncVisitor implements DataSyncVisitor {

    @Override
    public void visit(CrmCustomerData data) {
        System.out.println("Pushing CRM customer via API: " + data.getEmail());
    }

    @Override
    public void visit(ErpOrderData data) {
        System.out.println("Pushing ERP order via API: " + data.getOrderId());
    }

    @Override
    public void visit(CmsContentData data) {
        System.out.println("Pushing CMS content via API: " + data.getContentId());
    }
}
